package broker

import br.com.zanictech.grails.broker.AuthController;

class LoginTagLib {
	
	def loginControl = {
		
		
		if(AuthController.userLogin){
			out << "${AuthController.userLogin} "
			out << """[${link(action:"signOut", controller:"auth"){"Logout"}}]"""
		} else {
			out << """[${link(action:"signIn", controller:"auth"){"Login"}}]"""
		}
	}
}
